<?php

class DetailKipem extends \Eloquent {

	// Add your validation rules here
	public static $rules = [
		'provinsi_id'    => 'required',
		'lama_berlaku'   => 'required | integer',
		'satuan_berlaku' => 'required',
		'harga'          => 'required'
	];

	// Don't forget to fill this array
	protected $fillable = ["provinsi_id","lama_berlaku","satuan_berlaku","harga","is_active","user_id","ref_id","action"];

	public function provinsi()
    {
    	return $this->belongsTo('Provinsi');
    }

}